package cn.yyh.servicePay.client;

import cn.yyh.servicePay.domain.ProductOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: ProductOrderClient
 * @Package: cn.yyh.servicePay.client
 * @date 2021/7/12
 */
@FeignClient(name = "service-order")
@Component
public interface ProductOrderClient {

    @GetMapping("/serviceOrder/productOrder/getById/{id}")
    String getById(@PathVariable Long id);


    @PutMapping("/serviceOrder/productOrder/update")
    void update(@RequestBody ProductOrder productOrder);
}
